import request from '@/utils/request'

// 查询科研项目申报列表
export function listDeclaration(query) {
  return request({
    url: '/tongyan/declaration/list',
    method: 'get',
    params: query
  })
}

// 查询科研项目申报详细
export function getDeclaration(declarationId) {
  return request({
    url: '/tongyan/declaration/' + declarationId,
    method: 'get'
  })
}

// 新增科研项目申报
export function addDeclaration(data) {
  return request({
    url: '/tongyan/declaration',
    method: 'post',
    data: data
  })
}

// 修改科研项目申报
export function updateDeclaration(data) {
  return request({
    url: '/tongyan/declaration',
    method: 'put',
    data: data
  })
}

// 删除科研项目申报
export function delDeclaration(declarationId) {
  return request({
    url: '/tongyan/declaration/' + declarationId,
    method: 'delete'
  })
}
